package com.lanou3g.ptp.approval.mapper;

import com.lanou3g.ptp.entity.Approval;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import java.util.Date;
import java.util.List;

@Mapper
public interface ApprovalMapper {

    /**
     * 查询所有未通过审核的假条
     * @return
     */
    List<Approval> findUnPassByTeacherId(Long teacherId);

    int upStatus(@Param("id") Long id,@Param("name")String name,@Param("date")Date date, @Param("i") int i);

    List<Approval> findByStudentId(Long studentId);

    int insert(Approval approval);

    Approval fingApprovalMsgByApprovalId(@Value("approvalId") Long approvalId);
}
